package com.mars.admin.modules.sys.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.mars.admin.common.utils.PageUtils;
import com.mars.admin.common.utils.Query;

import com.mars.admin.modules.sys.dao.SensorInfoDao;
import com.mars.admin.modules.sys.entity.SensorInfoEntity;
import com.mars.admin.modules.sys.service.SensorInfoService;


@Service("sensorInfoService")
public class SensorInfoServiceImpl extends ServiceImpl<SensorInfoDao, SensorInfoEntity> implements SensorInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<SensorInfoEntity> page = this.selectPage(
                new Query<SensorInfoEntity>(params).getPage(),
                new EntityWrapper<SensorInfoEntity>()
        );

        return new PageUtils(page);
    }

}
